package com.demo.jpa.dao.repository;

import com.demo.jpa.dao.entity.UserProcedureEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.query.Procedure;
import org.springframework.data.repository.query.Param;

/**
 * @Author:LiaoYouLe
 * @Date: Created in 2018/7/25
 * @Description
 * @Modifyied By:
 */
public interface UserProcedureRepository extends JpaRepository<UserProcedureEntity, Integer> {
    @Procedure("query_age")
    Integer queryAge(@Param("arg") Integer arg);
}

